﻿using QLInternet.Components;
using QLInternet.Model;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace QLInternet.ViewModel
{
    class GoiCuocViewModel:ObservableObject
    {
        private GoiCuoc goiCuoc = new GoiCuoc();

        private int sTT;
        private int denMB;
        private int donGia;
        private int cuocToiDa;
        private int moiMB;
        private int maPT;

        public int STT
        {
            get { return sTT; }
            set { sTT = value; }
        }

        public int MaPhuongThuc
        {
            get { return maPT; }
            set { maPT = value; }
        }

        public int MaGoiCuoc
        {

            get { return goiCuoc.MaGoiCuoc; }
            set
            {
                if (goiCuoc.MaGoiCuoc != value)
                {
                    goiCuoc.MaGoiCuoc = value;
                    NotifyPropertyChanged("MaGoiCuoc");
                }

            }
        }


        public string TenGoiCuoc
        {
            get { return goiCuoc.TenGoiCuoc; }
            set 
            {
                if (goiCuoc.TenGoiCuoc != value)
                {
                    goiCuoc.TenGoiCuoc = value;
                    NotifyPropertyChanged("TenGoiCuoc");
                }
                
            }
        }
        public int DownToiDa
        {
            get { return goiCuoc.DownToiDa; }
            set
            {
                if (goiCuoc.DownToiDa != value)
                {
                    goiCuoc.DownToiDa = value;
                    NotifyPropertyChanged("DownToiDa");
                }

            }
        }
        public int UpToiDa
        {
            get { return goiCuoc.UpToiDa; }
            set
            {
                if (goiCuoc.UpToiDa != value)
                {
                    goiCuoc.UpToiDa = value;
                    NotifyPropertyChanged("UpToiDa");
                }

            }
        }
        public int DownToiThieu
        {
            get { return goiCuoc.DownToiThieu; }
            set
            {
                if (goiCuoc.DownToiThieu != value)
                {
                    goiCuoc.DownToiThieu = value;
                    NotifyPropertyChanged("DownToiThieu");
                }

            }
        }
        public int UpToiThieu
        {
            get { return goiCuoc.UpToiThieu; }
            set
            {
                if (goiCuoc.UpToiThieu != value)
                {
                    goiCuoc.UpToiThieu = value;
                    NotifyPropertyChanged("UpToiThieu");
                }

            }
        }

        public int IP
        {
            get { return goiCuoc.IP; }
            set
            {
                if (goiCuoc.IP != value)
                {
                    goiCuoc.IP = value;
                    NotifyPropertyChanged("IP");
                }

            }
        }

        public int GiaTronGoi
        {
            get { return goiCuoc.GiaTronGoi; }
            set
            {
                if (goiCuoc.GiaTronGoi != value)
                {
                    goiCuoc.GiaTronGoi = value;
                    NotifyPropertyChanged("GiaTronGoi");
                }

            }
        }

        public string PhuongThuc
        {
            get { return goiCuoc.PhuongThuc; }
            set
            {
                if (goiCuoc.PhuongThuc != value)
                {
                    goiCuoc.PhuongThuc = value;
                    NotifyPropertyChanged("PhuongThuc");
                }

            }
        }

        public int DenMB
        {
            get { return denMB; }
            set { denMB = value; }
        }
        public int DonGia
        {
            get { return donGia; }
            set { donGia = value; }
        }
        public int CuocToiDa
        {
            get { return cuocToiDa; }
            set { cuocToiDa = value; }
        }
        public int MoiMB
        {
            get { return moiMB; }
            set { moiMB = value; }
        }


        private ObservableCollection<DoanhThu> listDoanhThu  = new ObservableCollection<DoanhThu>();
        public ObservableCollection<DoanhThu> ListDoanhThu
        {
            get { return listDoanhThu; }
        }






    }
}
